import request from "./request";

/**
 * @description: 获取所有的字体
 * @return {object}
 */
export function allFontList(params) {
  return request({
    method: 'get',
    url: '/font/allFontList',
    params
  })
}

/**
 * @description: 上传图片
 * @return {object}
 */
export function uploadImgByBase64(params) {
  return request({
    method: 'post',
    url: '/common/upload/uploadImgByBase64',
    data: params
  })
}

/**
 * @description: 模板背景图片
 * @return {object}
 */
export function createWallpaperTemplate(params) {
  return request({
    url: '/client/makeWallpaperTemplate/createWallpaperTemplate',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据id获取详情
 * @return {object}
 */
export function diyTemplateDetailById(params) {
  return request({
    url: '/client/makeWallpaperTemplate/diyTemplateDetailById',
    method: 'post',
    data: params
  })
}
/**
 * @description: 获取记录详情
 * @return {object}
 */
export function picSynthesisLogDetail(params) {
  return request({
    url: '/makeWallpaperTemplate/picSynthesisLogDetail',
    method: 'get',
    params
  })
}
/**
 * @description: 提交记录
 * @return {object}
 */
export function createPicSynthesisLog(params) {
  return request({
    url: '/makeWallpaperTemplate/createPicSynthesisLog',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取token
 * @return {object}
 */
export function getAuthToke(params) {
  return request({
    url: '/applet/user/getAuthToke',
    method: 'post',
    data: params
  })
}

/**
 * @description: 图片内容审核
 * @return {object}
 */
export function checkCensorImage(params) {
  return request({
    url: '/applet/user/checkCensorImage',
    method: 'post',
    data: params
  })
}

/**
 * @description: 人像扣图
 * @return {object}
 */
export function humanSegment(params) {
  return request({
    url: '/makeWallpaperTemplate/humanSegment',
    method: 'post',
    data: params
  })
}

/**
 * @description: 文本内容审核
 * @return {object}
 */
export function checkTxt(params) {
  return request({
    url: '/applet/user/checkTxt',
    method: 'post',
    data: params
  })
}

/**
 * @description: 查询姓氏谐音
 * @return {object}
 */
export function querySurnameXinyinBySurname(params) {
  return request({
    url: '/surnameAvatar/querySurnameXinyinBySurname',
    method: 'get',
    params
  })
}

/**
 * @description: 获取相同的模板
 * @return {object}
 */
export function templateAllListByToolId(params) {
  return request({
    url: '/makeWallpaperTemplate/wallpaperTemplateAllListByToolId',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取直传
 * @return {object}
 */
export function getAliyunCosSignature(params) {
  return request({
    url: '/common/upload/getAliyunCosSignature',
    method: 'get',
  })
}

/**
 * @description: 获取贴纸
 * @return {object}
 */
export function getAllMaterialListByCategoryId(params) {
  return request({
    url: '/material/getAllMaterialListByCategoryId',
    method: 'get',
  })
}

/**
 * @description: 获取全部汽车贴纸
 * @return {object}
 */
export function getAllCarMaterialListByCategoryId(params) {
  return request({
    url: '/carMaterial/getAllMaterialListByCategoryId',
    method: 'get',
  })
}

/**
 * @description: 获取贴纸
 * @return {object}
 */
export function createUserMaterial(params) {
  return request({
    url: '/material/createUserMaterial',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取贴纸
 * @return {object}
 */
export function userAllMaterialList(params) {
  return request({
    url: '/material/userAllMaterialList',
    method: 'get',
  })
}

/**
 * @description: 获取付费定制作品的全部类型
 * @return {object}
 */
export function makeArtworksTypeAllList() {
  return request({
    url: '/artworks/makeArtworksTypeAllList',
    method: 'get',
  })
}

/**
 * @description: 获取标签列表
 * @return {object}
 */
export function artworksLabelList(params) {
  return request({
    url: '/artworks/artworksLabelList',
    method: 'get',
    params
  })
}

/**
 * @description: 根据作品分类和达人主页id获取专辑
 * @return {object}
 */
export function findAlbumByAuthorIdAndTypeId(params) {
  return request({
    url: '/artworks/findAlbumByAuthorIdAndTypeId',
    method: 'get',
    params
  })
}

/**
 * @description: 获取定制类产品价格
 * @return {object}
 */
export function makeChangePriceList(params) {
  return request({
    url: '/merchant/makeChangePriceList',
    method: 'get',
    params
  })
}

/**
 * @description: 用户创建定制作品模板
 * @return {object}
 */
export function createMakeArtworks(params) {
  return request({
    url: '/artworks/createMakeArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function artworksDetailById(params) {
  return request({
    url: '/artworks/artworksDetailById',
    method: 'get',
    params
  })
}

/**
 * @description: 删除自定义素材
 * @return {object}
 */
export function deleteUserMaterial(params) {
  return request({
    url: '/aiTool/aiFaceFusionMovie/deleteUserMaterial',
    method: 'get',
    params
  })
}

/**
 * @description: 汽车品牌列表
 * @return {object}
 */
export function allCarBrandListData(params) {
  return request({
    url: '/carBrand/allCarBrandListData',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取全部车系，根据车品牌
 * @return {object}
 */
export function allCarSeriesByBrandId(params) {
  return request({
    url: '/carSeries/allCarSeriesByBrandId',
    method: 'get',
    params
  })
}

/**
 * @description: 获取全部车系和颜色
 * @return {object}
 */
export function allCarModelListBySeriesId(params) {
  return request({
    url: '/carModel/allCarModelListBySeriesId',
    method: 'get',
    params
  })
}
